/*
 * Copyright 2016 Wealth Inc. All rights reserved.
 */
 package com.wealth.member.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import com.wealth.member.entity.Membership;

import iaas.repository.BaseRepository;

/**
 * @author chan
 */
 @Repository
public interface MembershipDao extends BaseRepository<Membership, Long> ,JpaSpecificationExecutor<Membership>{

	 /** 查询会员身份 */
	 public Membership findByMemberIdAndCorpId(Long memberid,Long corpid);

	 /** 查询会员身份 微信号+企业 */
	 public Membership findByOpenidAndCorpId(String openid,Long corpid);
	 
	 /** 查询一个企业下的所有会员身份 企业 */
	 public List<Membership> findByCorpId(Long corpid);
}
 

